import 'package:flutter/material.dart';
import 'package:flutter_shop/pages/home/info/index.dart';
import 'package:flutter_shop/widgets/search_bar/index.dart';

class TabInfo extends StatefulWidget {
  @override
  State<TabInfo> createState() => _TabInfoState();
}

class _TabInfoState extends State<TabInfo> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: SearchBar(onSearch: () {
          Navigator.of(context).pushNamed('search');
        }),
        backgroundColor: Colors.white,
      ),
      body: ListView(
        children: [
          Container(
            margin: EdgeInsets.only(top: 10),
            child: Info(
              showTitle: false,
            ),
          )
        ],
      ),
    );
  }
}
